import config from '@/config'
import http from '@/utils/request'

export default {
	// 直控
	direct: {
		// 总体情况
		generalConditionList: {
			url: `${config.API_URL}/direct/generalConditionList`,
			name: '总体情况',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 区域维度
		areaConditionList: {
			url: `${config.API_URL}/direct/areaConditionList`,
			name: '区域维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 产品维度
		productConditionList: {
			url: `${config.API_URL}/direct/productConditionList`,
			name: '产品维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 客户维度
		customersList: {
			url: `${config.API_URL}/direct/customersList`,
			name: '客户维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		}
	},
	// KA
	ka: {
		// 总体情况
		generalConditionList: {
			url: `${config.API_URL}/ka/generalConditionList`,
			name: '总体情况',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 区域维度
		areaConditionList: {
			url: `${config.API_URL}/ka/areaConditionList`,
			name: '区域维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 产品维度
		productConditionList: {
			url: `${config.API_URL}/ka/productConditionList`,
			name: '产品维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 客户维度
		customersList: {
			url: `${config.API_URL}/ka/customersList`,
			name: '客户维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		}
	},
	// 医疗
	medical: {
		// 总体情况
		generalConditionList: {
			url: `${config.API_URL}/medical/generalConditionList`,
			name: '总体情况',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 区域维度
		areaConditionList: {
			url: `${config.API_URL}/medical/areaConditionList`,
			name: '区域维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 产品维度
		productConditionList: {
			url: `${config.API_URL}/medical/productConditionList`,
			name: '产品维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 医疗终端维度
		terminalCoverageList: {
			url: `${config.API_URL}/medical/terminalCoverageList`,
			name: '医疗终端维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		}
	},
	// 商控
	commercial: {
		// 总体情况
		generalConditionList: {
			url: `${config.API_URL}/commercial/generalConditionList`,
			name: '总体情况',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 区域维度
		areaConditionList: {
			url: `${config.API_URL}/commercial/areaConditionList`,
			name: '区域维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 产品维度
		productConditionList: {
			url: `${config.API_URL}/commercial/productConditionList`,
			name: '产品维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 铁架子维度
		ironFrameCustomers: {
			url: `${config.API_URL}/commercial/ironFrameCustomers`,
			name: '铁架子维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 商业客户维度
		commercialCustomers: {
			url: `${config.API_URL}/commercial/commercialCustomers`,
			name: '商业客户维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		},
		// 中小连锁维度
		chainCustomers: {
			url: `${config.API_URL}/commercial/chainCustomers`,
			name: '中小连锁维度',
			post: async function (data = {}) {
				return await http.post(this.url, data)
			}
		}
	}
}
